p $tmp=0
while $tmp<$cpu_number
  eval "tvariable $per_cpu_c_%d",$tmp
  eval "tvariable $per_cpu_cy_%d",$tmp
  eval "tvariable $per_cpu_tc_%d",$tmp
  eval "tvariable $per_cpu_tcy_%d",$tmp
  eval "tvariable $per_cpu_tmp_0_%d",$tmp
  eval "tvariable $per_cpu_tmp_1_%d",$tmp
  p $tmp=$tmp+1
end

trace net_rx_action
  commands
    teval $per_cpu_c_0=$per_cpu_c_0+1
    teval $per_cpu_tmp_0_0=$clock
  end
trace dev.c:3848
  commands
    teval $per_cpu_cy_0=$per_cpu_cy_0+$clock-$per_cpu_tmp_0_0
  end
trace dev.c:3781
  commands
    teval $per_cpu_tmp_1_0=$clock
  end
trace dev.c:3829
  commands
    teval $per_cpu_tcy_0=$per_cpu_tcy_0+$clock-$per_cpu_tmp_1_0
    teval $per_cpu_tc_0=$per_cpu_tc_0+1
  end
